<?php

/**
 * DatoLiquidacion form base class.
 *
 * @package    isaac
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 12815 2008-11-09 10:43:58Z fabien $
 */
class BaseDatoLiquidacionForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'id'          => new sfWidgetFormInputHidden(),
      'row'         => new sfWidgetFormInput(),
      'desde'       => new sfWidgetFormDate(),
      'hasta'       => new sfWidgetFormDate(),
      'unidades'    => new sfWidgetFormInput(),
      'personal_id' => new sfWidgetFormPropelChoice(array('model' => 'Personal', 'add_empty' => true)),
      'concepto_id' => new sfWidgetFormPropelChoice(array('model' => 'Concepto', 'add_empty' => true)),
      'created_at'  => new sfWidgetFormDateTime(),
      'updated_at'  => new sfWidgetFormDateTime(),
    ));

    $this->setValidators(array(
      'id'          => new sfValidatorPropelChoice(array('model' => 'DatoLiquidacion', 'column' => 'id', 'required' => false)),
      'row'         => new sfValidatorNumber(array('required' => false)),
      'desde'       => new sfValidatorDate(array('required' => false)),
      'hasta'       => new sfValidatorDate(array('required' => false)),
      'unidades'    => new sfValidatorNumber(array('required' => false)),
      'personal_id' => new sfValidatorPropelChoice(array('model' => 'Personal', 'column' => 'id', 'required' => false)),
      'concepto_id' => new sfValidatorPropelChoice(array('model' => 'Concepto', 'column' => 'id', 'required' => false)),
      'created_at'  => new sfValidatorDateTime(array('required' => false)),
      'updated_at'  => new sfValidatorDateTime(array('required' => false)),
    ));

    $this->widgetSchema->setNameFormat('dato_liquidacion[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'DatoLiquidacion';
  }


}
